<%@page contentType="text/html" pageEncoding="ISO-8859-1"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>
<%@taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@taglib uri="http://richfaces.org/a4j" prefix="a4j"%>

<f:view>
    <%--@include file="../jspf/html_inicio.jspf" --%>
    <%--@include file="../jspf/menu_principal.jspf" --%>
    <link href="/evento/css/admin_2.css" rel="stylesheet" type="text/css"/>

    <t:div>

        <h:form>
            <br>
            <h:panelGrid columns="1" width="100%" styleClass="tablaprincipal">
                <h:outputLabel value="Modificar Usuario Web" />
            </h:panelGrid>

            <table border="0" width="100%" cellpadding="2" cellspacing="2" class="tablanormal">
                <tr>
                    <td width="15%" align="right">Codigo: </td>
                    <td width="85%">
                        <h:inputText value="#{PermisoController.permiso.pmsCodigo}" size="4" maxlength="4" />
                    </td>
                </tr>
                <tr>
                    <td align="right">Permiso: </td>
                    <td>
                        <h:inputText value="#{PermisoController.permiso.pmsNombre}" size="20" maxlength="20" />
                    </td>
                </tr>
                <tr>
                    <td align="right">Orden: </td>
                    <td>
                        <h:inputText value="#{PermisoController.permiso.pmsOrden}" size="4" maxlength="4" />
                    </td>
                </tr>
                <tr>
                    <td align="right">Activo: </td>
                    <td>
                        <h:selectBooleanCheckbox value="#{PermisoController.permiso.pmsActivo}" disabled="true"/>
                    </td>
                </tr>
            </table>
            <br/>
            <h:commandButton styleClass="desactivar" id="btnRetornar" value="Retornar"
                             accesskey="R" action = "#{PermisoController.listar}" title="Retornar"/>
            &nbsp;&nbsp;
            <h:commandButton styleClass="desactivar" id="btnActualizar" value="Actualizar"
                             accesskey="G" action="#{PermisoController.actualizar}" title="Actualizar"
                             onclick="return confirm('Deseas actualizar los datos del Permiso?');" />
            &nbsp;&nbsp;
            <h:commandButton styleClass="desactivar" id="btnCancelar" value="Cancelar"
                             accesskey="A" action = "#{PermisoController.cancelar}" title="Cancelar"/>
            <br/><br/>
            <h:messages id="lblMessages" showDetail="true" errorStyle="color:red;" warnStyle="color:green;" infoStyle="color:black;"/>

        </h:form>
    </t:div>
    <%--@include file="../jspf/pie.jspf" --%>
</f:view>
